﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using DapperWrapper;
using ZLWeb.WebApiEntity;
using ZLWeb.WebApiEntity.EasyUse;
using ZLWeb.WebApiRepository.InterFace;

namespace ZLWeb.WebApiRepository
{
    public class RegesiterRepository : Respository<ywInfo>, IRegesiterRepository
    {
        public void SimpleRegesiter(ywInfo info, string oprpj, dpno sd)
        {
            List<Action<IDbConnection>> paActions = new List<Action<IDbConnection>>();
            var ywInfoparam= ExecuteProcAddParam(info, "#ywInfo", true);
            paActions.Add(ywInfoparam);
            var pnoparam = ExecuteProcAddParam(sd, "#pno", true);
            paActions.Add(pnoparam);
            ExecuteProc(paActions, "pr_AccOpen_submit", new {}, null);
            if (error != null)
            {
                throw new SqlExecuteException("功能异常", error);
            }
        }
    }
}
